<?php

namespace App\Http\Controllers;

use App\AlishiForm;
use App\Http\Requests\AlishiFormRequest;
use Illuminate\Http\Request;

class ActiveController extends Controller
{
    //
    public function index(){

        return view('huodong.index') ;
    }
    public function submit(AlishiFormRequest $request){
       $alishi= new AlishiForm();
       $alishi->mobile=$request->mobile;
       $alishi->username=$request->username;
       $alishi->city=$request->city;
       $alishi->href=$request->href;
       $alishi->save();
       return back()->with('status','提交成功，您的专属顾问会在1小时内与您联系，请保持手机畅通');
    }
}
